.foot {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.4);
  bottom: 0;

  /**
   * 购物车底部栏
   */
  .foot-box {
    position: absolute;
    display: flex;
    bottom: 0;
    justify-content: center;
    align-items: center;
    margin: 0;
    width: 100%;
    height: $footHeight;
    z-index: 9;
    .foot-box-content {
      height: 100%;
      flex: auto;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      background: linear-gradient(180deg, #464e69, #20273d);
      box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.4);
      border-top-left-radius: 4px;
      border-bottom-left-radius: 4px;
      padding-left: 5px;
      .cart-icon-box {
        position: relative;
        width: 36px;
        height: 36px;
        margin: 0 10px;
        box-sizing: content-box;
        image {
          width: 100%;
          height: 100%;
        }
        .tag {
          position: absolute;
          right: 0px;
          top: -2px;
          height: 18px;
          width: 18px;
          background-color: $color-primary-modal-bg;
          color: $gold;
          border-radius: 50%;
          z-index: 1;
          font-size: 10px;
          text-align: center;
          line-height: 18px;
        }
      }
      .price-box {
        flex: auto;
        display: flex;
        align-items: center;
        .total-text {
          color: $color-primary-grey-text;
        }
        .text-price {
          color: $gold;
          font-size: 18px;
        }
      }
    }

    // 下单按钮
    .foot-box-btn {
      width: 90px;
      height: 100%;
      position: relative;
      display: flex;
      justify-content: flex-start;
      align-self: center;
      align-items: center;
      background: linear-gradient(180deg, #464e69, #20273d);

      .submit {
        width: 100%;
        height: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
        align-self: center;
        align-items: center;
        // font-weight: bold;
        background: linear-gradient(180deg, #ffedcb, #f1c99a);
        color: $color-primary-bg;
      }
    }
  }

  .mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
  }

  /** 
   * 点击购物车展开的详情框
   */
  $cartBoxHeight: 66vh;
  .cart-box {
    box-sizing: border-box;
    display: flex;
    justify-content: flex-start;
    flex-flow: column;
    background: $greyBg;
    position: absolute;
    bottom: 0;
    z-index: 2;
    height: $cartBoxHeight;
    padding-bottom: 62px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    overflow: hidden;
    width: 100%;

    // 清空购物车标题
    $cartBoxHeaderHeight: 50px;
    .cart-box-header {
      position: relative;
      font-size: $font-size-xs;
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      height: $cartBoxHeaderHeight;
      line-height: $cartBoxHeaderHeight;
      color: $gold;
      border-bottom: 1px solid $borderColor;
      padding: 0 15px;
      &-left {
        display: flex;
        flex-direction: row;
      }
      &-title {
        font-size: $font-size-base;
        color: $white;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
      }
    }

    // 购物车内 商品列表
    .cart-goods-scroll {
      height: calc(#{$cartBoxHeight} - #{$cartBoxHeaderHeight} - #{$footHeight});
      font-size: 14px;
      color: $color-primary-grey-text;

      .cart-goods-container {
        padding: 15px;
        width: 100%;
        height: 100%;

        // 单条商品容器
        .cart-goods-item-box {
          display: flex;
          flex-flow: row nowrap;
          width: 100%;
          justify-content: space-between;
          align-items: flex-start;
          margin-bottom: 17px;

          // 主套餐
          .box-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            font-size: $font-size-base;
          }

          // 套餐配送
          .cart-meal-form {
            margin-top: 10px;
            background: #232a3e;
            padding: 10px 15px;
            border-radius: 5px;
            width: 100%;
            font-size: $font-size-xs;
            &-item {
              display: flex;
              justify-content: space-between;
              margin-bottom: 7px;
            }
            &-item:last-child {
              margin-bottom: 0;
            }
          }
        }
      }
    }
  }
}

.right-number {
  // width: 30px;
  white-space: nowrap;
  // text-align: left;
}

// 购物车无数据
.cart-no-data {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 20px;
}
